package com.baor.controller;


import com.baor.domain.conf.WithdrawalsConf;
import com.baor.service.WithdrawalsService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/withdrawals")
public class WithdrawalsController {

    @Autowired
    private WithdrawalsService withdrawalsService;

    @RequestMapping("/withdrawalsInfo")
    public AjaxResult<?> withdrawalsInfo(@RequestBody WithdrawalsConf conf) {
        return withdrawalsService.withdrawalsInfo(conf);
    }

    @RequestMapping("/updateWithdrawals")
    public AjaxResult<?> updateWithdrawals(@RequestBody WithdrawalsConf conf) {
        return withdrawalsService.updateWithdrawals(conf);
    }
}
